package com.yupi.yuapiinterface.controller;

import com.yupi.yuapiinterface.service.ImageService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author <a href=""https://github.com/Fzs0>逢左使</a>
 * @create 2023/12/23 20:17
 * @Description: 图片接口
 */
@RestController
@RequestMapping("/image")
public class ImageController {

    @Resource
    private ImageService imageService;

    @GetMapping("/random")
    public String getImageByRandom() {
        String imageUrl = imageService.getImageUrl();
        return imageUrl;
    }

}
